package com.Enquip.server.impl;

import java.util.Set;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.Enquip.dao.UserDao;
import com.Enquip.entity.User;
import com.Enquip.server.UserServer;
@Service("userServer")
public class UserServerImpl implements UserServer
{

	@Resource
	private UserDao userDao;
	public User getByUserName(String userName)
	{
		return userDao.getByUserName(userName);
	}

	public Set<String> getRoles(String userName)
	{
		return userDao.getRoles(userName);
	}

	public Set<String> getPermissions(String userName)
	{
		return userDao.getPermissions(userName);
	}

}
